package com.wondertek.poms.image.mqListener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wondertek.poms.common.constant.Constants;

import lombok.extern.slf4j.Slf4j;

@Component
@Slf4j
@RabbitListener(queues = Constants.QUEUE_TRANS_IMG)
public class ContentImageListener {
	
	@Autowired
	private StartProcess startProcess;
	
	/**
     * <p><b>Title:</b> receiveContentTopic</p>
     * <p><b>Description:</b> 内容转图消息队列（消息快速队列）</p>
     *
     * @param message
     * @author douzi
     */
	@RabbitHandler
    public void receiveContentTopic(String message) {
    	log.info("内容同步主流程|mq消息：" + message);
    	startProcess.fastProcess(message);
    }
}
